package com.baizhi.dao;

import com.baizhi.entity.Article;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ArticleDao {
    public int insertArticle(Article article);
    //真删
    public int deleteArticleById(int articleId);
    public int updateArticle(Article article);
    public List<Article> selectAllArticle(@Param("offset") int offset, @Param("limit") int limit);
    public int selectCount();
    public Article selectOne(int articleId);
}
